Web API Core | ComponentOne
C1.Web.Api.DataEngine.Data Namespace / FlexPivotEngineProviderManager Class / AddDataEngine Method / AddDataEngine<T>(String,Func<IEnumerable<T>>,String,String) Method
The unique value used to stand for the data source.
A function to get an arbitrary IEnumerable.
Path in the server's file system where DataEngine data is saved in files. If it is set to null or not set, the default workspace is used. The default workspace path is "application base path + /Data". You can change it via the Microsoft.AspNetCore.Builder.IApplicationBuilder.SetDefaultWorkspacePath(string path) method.
The name of the DataEngine table. If it is set to null or not set, the value of the name parameter is used.

In This Topic
    AddDataEngine<T>(String,Func<IEnumerable<T>>,String,String) Method
    In This Topic
    Adds a DataEngine data from an arbitrary IEnumerable.
    Syntax
    'Declaration
     
    
    Public Overloads Function AddDataEngine(Of T)( _
       ByVal name As String, _
       ByVal dataGetter As Func(Of IEnumerable(Of T)), _
       Optional ByVal workspace As String, _
       Optional ByVal tableName As String _
    ) As FlexPivotEngineProviderManager

    Parameters

    name
    The unique value used to stand for the data source.
    dataGetter
    A function to get an arbitrary IEnumerable.
    workspace
    Path in the server's file system where DataEngine data is saved in files. If it is set to null or not set, the default workspace is used. The default workspace path is "application base path + /Data". You can change it via the Microsoft.AspNetCore.Builder.IApplicationBuilder.SetDefaultWorkspacePath(string path) method.
    tableName
    The name of the DataEngine table. If it is set to null or not set, the value of the name parameter is used.

    Type Parameters

    T

    Return Value

    The flex pivot engine provider manager.
    See Also